
<?
$objConnect = mysql_connect("localhost","root","1234") or die("Error Connect to Database");
$objDB = mysql_select_db("approve");
mysql_query("set NAMES tis620");
$strSQL = "UPDATE data SET ";
$strSQL .=" status = '".$_POST["status"]."' ";
$strSQL .="WHERE pid = '".$_POST["pid"]."' "; 
$objQuery = mysql_query($strSQL); 
if($objQuery)
{
	echo "Save Done.";
}
else
{
	echo "Error Save [".$strSQL."]";
}
mysql_close($objConnect);
?>
<html><head><meta http-equiv="refresh" content="0;url=Approve.php"/></head></html>
